From: Marco Trevisan (TreviƱo) Date: Tue, 10 Sep 2024 22:22:57 +0000 (+0200) Subject: gdm: Actually wait for pending messages being notified on failures X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~204^2^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c67ea8e771512fb3a76dc5eea1c268bf615d5422;p=gnome-shell.git gdm: Actually wait for pending messages being notified on failures We had code to ensure that all the queued messages sent by a PAM module were shown by waiting some time to give the user time to read them, but due to a typo this code never executed. Fixes commit dd97a2589b8b686f273550f3e9e6ce370b25c10d Part-of: --- diff --git a/js/gdm/util.js b/js/gdm/util.js index cbb99b1a3..1e0154f36 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -862,7 +862,7 @@ export class ShellUserVerifier extends Signals.EventEmitter { } _handlePendingMessages() { - if (!this.hasPendingMessage) + if (!this.hasPendingMessages) return Promise.resolve(); const cancellable = this._cancellable;